import Login from '@/pages/login';
import Main from '@/pages/main';
import HomePage from '@/pages/main/pages/home';
import QaPage from '@/pages/main/pages/qa';
import MinePage from '@/pages/main/pages/mine';
import VideoPage from '@/pages/main/pages/video';
import Search from '@/pages/search';
import SearchResult from '@/pages/search-result';
import articleContent from '@/pages/articleContent';

export default [
  {
    path: '/',
    redirect: '/home',
    component: Main,
    children: [
      {
        path: '/home',
        component: HomePage,
      },
      {
        path: '/qa',
        component: QaPage,
      },
      {
        path: '/mine',
        component: MinePage,
      },
      {
        path: '/video',
        component: VideoPage,
      },
    ]
  },
  {
    path: '/login',
    component: Login,
  },
  {
    path: '/search',
    component: Search,
  },
  {
    path: '/search-result',
    component: SearchResult,
  },
  {
    path: '/articleContent',
    component: articleContent,
  }
];
